<!DOCTYPE HTML>
<html>
<head>
    <!--确认订单页-->
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css">
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css">
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css">
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin">
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css">
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css">
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!--地址添加样式-->
    <link rel="stylesheet" href="../../../ht-css/replaceAddress/addAddress.css">

    <style type="text/css">
        p{
            width: 250px;
            height: 30px;
            line-height: 30px;
            color: #000;
            font-size: 14px;
        }
        p >a {
            display: block;
            width: 100%;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
        p >a:hover{
            display: block;
            width: 100%;
            overflow: auto;
            white-space: normal;
        }
        .zz_need{
            border: 1px solid #e8e8e8;
            padding: 10px 30px;
            margin-bottom: 25px;
            background: #F7F7F7;
            border:1px solid #D3D3D3;
            overflow: hidden;
            margin-top:25px;
        }
        .zz_sel .li{float: left;height: 26px;line-height:26px;margin-right:40px;}
        .zz_sel .zz_sel_r{
            float: left;
        }
        .zz_sel .zz_sel_r label{margin-right: 15px;}
        .zz_sel .zz_sel_title{
            float: left;
            margin-right: 10px;
        }
        .zz_sel .zz_sel_re{
            float: left;
        }
        .is_need{
            display: block;
        }
        .is_notneed{
            display: none;
        }
        .check_invoice{
            border:2px solid #f08327;
        }
        .check_invoice:focus{
            border:2px solid #f08327;
        }
        .input-text{
            -webkit-transition:all 0s;
            transtion:all 0s;
        }
        .price .inputShow{
            border: none;
            background: #F7F7F7;
        }
        .price .inputster{
            border: none;
            background: #F7F7F7;
        }
        .price .addinputShow{
            border: 1px #D3D3D3 solid;
            padding-left: 5px;
            margin-left: 5px;
            line-height: 1.5;
        }
        .limit_address{
            display: inline-block;
            border: 1px solid #f08327;
            color: #f08327;
            background: #fff;
            padding: 0px 11px;
            font-style: normal;
        }
        .def_address{
            display: inline-block;           
            padding: 0px 11px;
            font-style: normal;
            background: #999;
            color: #fff;
            padding: 0px 11px;
        }
        .replace01 span{
            line-height: 20px;
        }
        .prohibitocnk{
            pointer-events: none;
            cursor: default;
            opacity: 0.6;
        }
        .chanGeremarcss{
            border: 1px #ff0000 solid;
        }
        .shanShare{
            display: none;
        }
    </style>
    <title>订单查询</title>
</head>
<body data-id="118">
<nav class="breadcrumb">订单管理 <span class="c-gray en">&gt;</span> 代客下单<a class="btn btn-suc cess radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<article class="page-container">
    <div class=" pd-5 bg-1 bk-gray pb-10 ml-20 mr-20">
        <!--<ul class="step_box clearfix">-->
            <!--<li class="curr"><i></i><em>1</em><span>选择签约客户</span></li>-->
            <!--<li class="curr"><i></i><em>2</em><span>添加商品</span></li>-->
            <!--<li class="curr"><i></i><em>3</em><span>确认订单</span></li>-->
            <!--<li class=""><i></i><em>4</em><span>下单成功</span></li>-->
        <!--</ul>-->
        <!--<div class="mr-20 pb-10 pl-20"><div class="line"></div></div>-->
        <form class="mr-20" id="formOfSsearch">
            <div class="clearfix mb-15 ml-20 deliverylist">
                <div class="pt-30">
                    <div>
                        <b class="f-14">收货地址：</b>
                        <div style="margin-right: 20px;float: right">
                            <a onclick="goBack(1)" class="f-12">返回修改地址区域>></a>
                        </div>
                        <div style="margin-right:59px;float:right">
                            <a onclick="addAddress()" class="f-12  119">+添加新地址</a>
                        </div>
                    </div>
                </div>
                <div class="line mt-10 mb-20" style="clear: right;"></div>
                <div class="replace01">
                    <div class="clearfix pb-15">
                        <div class="address_info address_yes  clearfix">
                            <div id='ss' style='color: #cc0000'></div>
                            <div class="address_load_list" id="addressInfo"></div>
                        </div>
                        <div class="address_info address_no clearfix">
                            <a onclick='addAddress()' class='f-12  119'>+添加新地址</a>
                        </div>
                        <span class="Unfold">
                        <span>
                            <span onclick="moreAddress()" id="more" class="moreAdd">展开地址<img src="../../../img/Unfoldcopy.png"></span>
                            <span onclick="lessAddress()" id="less" class="hidden">收起地址<img src="../../../img/up.png"></span>
                        </span>
                    </span>
                    </div>
                </div>
                <div class="pt-30"><b class="f-14">支付方式：</b></div>
                <div class="line mt-10 mb-20"></div>
                <div style="float: left" class="clearfix pb-15"  id="methodHtml">
                    <span class="pattern_of_payment">账期支付</span>
                </div>
                <div>
                    <div id="goodsArrived" style="float: left; display: none">
                        <label for="yes"><input type="radio" name="ban" id="" value="110101" checked="checked" >现金</label>
                        <label for="no"><input type="radio" name="ban" id="" value="110102">POS机刷卡</label>
                    </div>
                </div>
                <div style="clear: both"></div>
                <div class="pt-30">
                    <div class="zz_line">
                        <div class="coupon"><b style="font-size: 14px">资质文件信息</b></div>
                        <div class="zz_need">
                            <ul class="zz_sel">
                                <li class="li">
                                    <span class="zz_sel_title">资质文件：</span>
                                    <div class="zz_sel_re">
                                        <select id="zzNeed">
                                            <option value="20" selected = "selected">不需要</option>
                                            <option value="10">需要</option>
                                        </select>
                                    </div>
                                </li>
                                <li class="li is_show is_notneed">
                                    <span>份数：</span>
                                    <input type="text" class="zz_sel_part" id="zzNum" value="1">
                                </li>
                                <li class="li is_show is_notneed">
                                    <span style="float: left;">带红章：</span>
                                    <div class="zz_sel_r" >
                                        <label for="yes"><input type="radio" name="zzyy" id="yes" value="10" >是</label>
                                        <label for="no"><input type="radio" name="zzyy" id="no" value="20" checked="checked">否</label>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div><b class="f-14">发票信息：</b></div>
                <div class="line mt-10 mb-20"></div>
                <div class="replace01">
                    <ul style="padding-left: 10px;" class="zz_sel">
                        <li class="li">
                            <span id="invoiceText" class="zz_sel_title">不开发票</span>
                            <a id="invoiceModify" onclick="invoice_change()">修改</a>
                        </li>
                    </ul>
                    <div class="clearfix pb-10" >
                        <div id="verify"></div>
                    </div>
                </div>
                <div class="pt-30"><b class="f-14">配送清单：</b>
                    <span style="margin-right: 20px;float:right;">
                        <a onclick="goBack()"> 返回修改商品>> </a>
                    </span>
                </div>
                <div class="line mt-10 mb-20" ></div>
                <div class="listcontent">
                    <div class="text" style="height: 30px" >
                        <span style='float:left; padding-right: 10px' class="deliverytime">配送方式：</span>
                        <ul class="butionUl">
                            <li>账期支付</li>
                        </ul>
                        <span class="weight">运费：¥<span id="freight"></span></span>
                        <div class="periphery" style="float: right">
                            <span>最长边：<label id="banlong"></label>m</span>
                            <span>总体积：<label id="total"></label>立方米</span>
                            <span>总重量:<label id="heavy"></label>千克</span>
                        </div>
                    </div>
                    <div class="text" style="height: 30px" >
                        <span class="deliverytime">配送时间：</span>
                        <span id="pintime"></span>
                        <span id="morningAfternoon"></span>
                        <a id="LimitlineNo" style="display: none" onclick="limitActChange()">修改</a>
                        <a id="Limitline" style="display: none" onclick="actChange()">修改</a>
                    </div>
                    <table cellpadding="0" cellspacing="0" class="content_table">
                        <thead>
                        <tr>
                            <th class="thwidth1">商品信息</th>
                            <th class="thwidth2"></th>
                            <th class="thwidth3" style="padding: 0 10px;">单价类型</th>
                            <th class="thwidth3" style="padding: 0 10px;">单价</th>
                            <th style="display: none" class="thwidth3 shanShare">运费分摊</th>
                            <th class="thwidth3">小计</th>
                            <th class="thwidth3">库存</th>
                        </tr>
                        </thead>
                        <tbody class="goods_table">
                        <!--<tr>-->
                            <!--<td class='info'><span class='info_img'><img src='" + obj.skuSpuImgUrl + "' id='" + obj.skuId + "," + obj.spuId + "'></span><span class='info_text'>" + 名称 + "</span></td>-->
                            <!--<td class="marktd"><span class='model'>" + 规格 + "</span> X <span class='number' style='float: none'>" + 规格 + "</span></td>-->
                            <!--<td class='price marktd'>¥<input class='inputShow' type='text' readonly='readonly' value="+小计+" id='inputshow' style='width: 40px; border: solid 1px #FFFFFF'/>&nbsp;&nbsp;&nbsp;<input type='button' class='ButtonTrue' style='display:none' id='buttonshow' onclick='ChangeTrue(this)' value='保存'></td>-->
                            <!--<td class='sub_price marktd'>¥" + 价格 + "</td>-->
                            <!--<td class='operate marktd'>有货</td>-->
                            <!--<td class='hide marktd'>" + obj.skuId + "</td>-->
                        <!--</tr>-->
                        </tbody>
                    </table>
                    <span class="isUnfold">
                        <span>
                            <a onclick="moreProduct(1)" id="many" class="manyProduct">更多商品<img src="../../../img/Unfoldcopy.png"></a>
                            <a onclick="moreProduct(2)" id="little" class="">收起<img src="../../../img/up.png"></a>
                        </span>
                    </span>
                </div>
                <div id="couponDataHtnl" style="">
                <div class="coupon"><b style="font-size: 14px">优惠券：</b></div>
                <div class="coupon_info clearfix" id="couponList">
                    <div class="youhuijuan_con">
                        <div class="youhuijuan" id="beijing1">
                            <div class="Uncheck" id="uncheak1" onclick="Uncheak1()" >取消勾选</div>
                            <!--<div class="coupon_list_box">
                                <div class="beijing3" onclick="chooseyouhui1()">
                                    <div class="money">¥<span style="float: none;margin-right: 0" id="DiscountedPrice">100</span></div>
                                    <div class="useConditions">满500使用</div>
                                    <div class="Validityperiod">有效期至2018.06.20</div>
                                </div>
                                <div class="beijing3down" >
                                  <span style="margin-left: 10px">[限平台限品类]</span>
                                </div>
                            </div>
                            <div class="coupon_list_box">
                                <div class="beijing5" style="float: none;">
                                    <div class="money">¥300</div>
                                    <div class="useConditions">满500使用</div>
                                    <div class="Validityperiod">有效期至2018年10月10日</div>
                                </div>
                                <div class="beijing5down">[限平台限品类]</div>
                            </div>
                            <div class="beijing3_info">金额抵用<span class="yhq_text">100</span>优惠券1张</div>-->

                        </div>
                    </div>
                </div>
                </div>
                <textarea class="comment f-14 test1" placeholder="备注：" id="remarks"></textarea>
                <textarea style="margin-right: 20px; display: none" class="comment f-14 test1" placeholder="商品改价备注必填：" oninput="Standardred(this)" id="chanGeremar"></textarea>
                <div class="calculate clearfix" style="clear: right" >
                    <table class="other" >
                        <tr>
                            <td class="f-14">总共 <span class="goods_total_count" id="total_count"></span> 商品，商品总额：</td>
                            <td class="number15 f-14" >¥<span id="goodTotalMoney"  style="float: none;margin-right: 0" class="good_total_price"></span></td>
                        </tr>
                        <tr>
                            <td class="f-14">
                                <select id="yunShare">
                                    <option value="10" selected = "selected">运费单开</option>
                                    <option value="20">运费分摊</option>
                                </select>
                                <span style="padding-left: 5px;">运  费：</span>
                            </td>
                            <td class="number16 f-14">¥<span id="yunfei" style="float: none;margin-right: 0">0.00</span></td>
                        </tr>
                        <tr id="Remarkslist" style=" display:none;">
                            <td class="f-14">运费备注：</td>
                            <td class="number16 f-14"><span id="yunfeiRemarks" style="float: none;margin-right: 0"></span></td>
                        </tr>
                        <tr>
                            <td class="f-14">运费减免：</td>
                            <td class="number17 f-14" >¥<span id="remission" style="float: none;margin-right: 0">0.00</span></td>
                        </tr>
                        <tr><td class="f-14" >优惠券：</td>
                            <td class="number18 f-14" >¥<span id="youhuijuan"  style="margin-right: 0px;float: none">0.00</span></td>
                        </tr>
                    </table>
                </div>
                <div class="hide">
                    <!--系统首次生成的运费-->
                    <span id="yunfei-init"></span></td>
                    <!--修改前的运费-->
                    <span id="yunfei-beforeChange"></span></td>
                    <!--修改后的运费-->
                    <span id="yunfei-afterChange"></span></td>
                    <!--修改后的运费备注-->
                    <span id="afterFare-remark"></span>
                </div>
                <div class="accepter_info clearfix">
                    <div class="price">应付总额：<span>¥</span><span class="pay_total_price" id="zongjine">0.00</span></div>
                </div>
            </div>
            <div class="text-r pd-20">
                <input onclick="ChangePrice(this)" type="button" id="changeprice" class="btn radius size-m mr-30  122" value="&nbsp;商品改价&nbsp;"><input onclick="Modifyshipping()" type="button" id="changeFreight" class="btn radius size-m mr-30  121" value="&nbsp;修改运费&nbsp;"><input onclick="commit()" id="commitlsit" type="button"  class="btn btn-secondary radius size-m  120" value="&nbsp;提交订单&nbsp;">
            </div>
        </form>
    </div>
    <!----------------------------------------弹出层--------------a-------------------------------------->
    <!--修改运费-->
    <div id="modal-demo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:353px;width:418px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b>修改运费</b></h3>
                    <!--<a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>-->
                </div>
                <div class="modal-body">
                    <div style="margin:12px auto auto 98px">当前运费：<span class="freight before">¥ 0.00</span></div>
                    <div style="margin:12px auto auto 98px">修改为：<input class="freight after" style="width: 92px;height: 22px" onkeyup="checknum(this);"></div>
                    <div style="margin:19px auto auto 98px"><textarea  placeholder="修改原因：" id="changeRemark" class="change_freight_comment" style="resize:none;font-size: 12px;color: #999999;letter-spacing: 0;width: 223px;height:96px "></textarea></div>
                    <div style="margin-top: 20px" align="center">
                        <button class="btn btn-primary radius size-L" onclick="sureChangeFare()">确定</button>
                        <button class="btn radius size-L ml-20" data-dismiss="modal" aria-hidden="true" onclick="closeChangeFare()">关闭</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!---------------------------------------------------------添加收货地址--------------------------------------------------------------->
    <div id="dizhi" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:650px;width:624px;overflow-y: auto;overflow-x: hidden;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">新增收货地址</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="info" >
                        <div class="clearfix">
                            <label>项目名称：</label><input name="" type="text" placeholder="请输入地址别名" id="addAlias" class="addAlias">
                        </div>
                        <div class="clearfix" id="app"  style="padding-top: 0">
                            <div class="clearfix area">
                                <label class="f-l"><em>*</em>收货区域：</label>
                                <div class="commonArea f-l">
                                    <div class="area_box">
                                        <div class="inp_area" >
                                            <div class="inp_area_box">
                                                <span id="notVueBox">
                                                    <span id="provinceName"></span>
                                                    <span id="cityName"></span>
                                                    <span id="countyName"></span>
                                                    <span id="villageName"></span>
                                                    <div style="display: none;">
                                                        <span id="provinceId"></span>
                                                        <span id="cityId"></span>
                                                        <span id="countyId"></span>
                                                        <span id="villageId"></span>
                                                    </div>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix">
                            <label><em>*</em>详细地址：</label><input name="" type="text" placeholder="请输入详细地址" id="detailedAddress" class="detailedAddress">
                            <div class="etip tip_31"></div>
                        </div>
                        <br>
                        <div><span style="color: #aaa;margin-left:40px;">-----------------------------------------------------------------------------------------</span></div>
                        <br>
                        <div><span style="color: #aaa;margin-left:40px;">为保证货物送达顺利交接，建议填写多个收货人；至少填写一个手机号码</span></div>
                        <div class="clearfix"><label><em>*</em>收货人：</label>
                            <input type="text" onkeyup="value=value.replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,''))" placeholder="请选择收货人" onclick="myFunction()" class="input-text radius mr-10" id="linkman" autocomplete="off" name="likname">
                            <!--<select id="linkman" class="linkman" onchange="checkFirstName(this.value)">-->
                            <!--<option value="1" selected style="display:none;">请选择收货人</option>-->
                            <!--&lt;!&ndash;<option ></option>&ndash;&gt;-->
                            <!--</select>&lt;!&ndash;<label><em>*</em>手机号码：</label>&ndash;&gt;-->

                            <input name="mobilephone" type="text" placeholder="请输入手机号码进行添加" id="mobilephone" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" class="input-text radius mr-10">

                            <button  onclick="addlinkman()">添加</button>
                            <div id="myDiv" style="display:none;"></div>
                            <ul style="position:relative;top:5px;width:205px;border:1px solid #d8d8d8;" class="relation radius guanlian" id="tuan">
                                <li class="pl-10 lh-26"></li>
                                <!--<li class="pl-10 lh-26"><a>+新增授权收货人</a></li>-->
                            </ul>
                            <span id="a" style="color: #cc0000"></span>
                            <div class="etip tip_32 tip_38"></div>
                        </div>
                        <div id="tableid">
                            <!--<input id="addressid" class="hide"><input id="Id" class="hide"><input id="receiverid" class="hide"><input id="Status" class="hide">
                            <label>姓名:</label><input id="lname" ><label>手机号码:</label><input id="lphone" ><a onclick="Deletel(this)" >删除</a>-->
                            <table class="ml-60">
                                <tbody id="addressList">

                                </tbody>
                            </table>
                        </div>
                        <!-- <div class="clearfix">
                         </div>-->
                        <br>
                        <div><span style="color: #aaa;margin-left:40px;">-----------------------------------------------------------------------------------------</span></div>
                        <div class="clearfix">
                            <label>固定电话：</label><input name="" type="text" placeholder="请输入固定电话号码" id="landlineCelephone" class="landlineCelephone">
                        </div>


                        <div class="clearfix">
                            <label><em></em>邮箱地址：</label><input name="" type="text" placeholder="请输入邮箱地址" id="email" class="email">
                        </div>
                        <!--   <span>为保证货物送达顺利交接，建议填写备选授权收货人</span>
                       <div class="clearfix"><label><em></em>备选授权收货人：</label>
                           <select id="secondLinkman" class="secondLinkman"  onchange="checkSecondName(this.value)">
                               <option value="2" selected style="display:none;" >请选择备选授权收货人</option>
                           </select><span id="b" style="color: #cc0000"></span>
                           <div class="etip tip_32 tip_38"></div>
                       </div>
                       <div class="clearfix">
                           <label><em>*</em>手机号码：</label><input name="" type="text" placeholder="请输入手机号码" id="secondMobilephone">
                           <span id="c" style="color: #cc0000"></span>
                       </div>
                       <div class="clearfix">
                           <label><em></em>固定电话：</label><input name="" type="text" placeholder="请输入固定电话号码" id="secondLandlineCelephone">
                       </div>-->
                    </div>
                    <div class="text-c pt-30"><a onclick="saveAddress()" class="btn btn-secondary radius size-L">保存收货地址</a><a onclick="close_model()" class="btn radius size-L ml-10">取消</a></div>
                </div>
            </div>
        </div>

    </div>
    <!--------------------------订单中有失效或下架商品！------------------------------->
    <!--<input type="button" onclick="tishi1()" value="提示1">-->
    <div id="invalidOrCut_price" class="modal fade pop_win" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog" style="width:420px;">
            <div class="modal-content radius">
                <div class="modal-header">
                    <h3 class="modal-title">提示</h3>
                    <!--<a class="close" data-dismiss="modal" aria-hidden="true" href="javascript:void();">×</a>-->
                </div>
                <div class="modal-body modal-center">
                    <p>订单中有失效或下架商品！</p>
                </div>
                <div align="center" class="button">
                    <button class="btn btn-primary radius size-L" onclick="clearInvalidGoods()">自动清除</button>
                    <button class="btn radius size-L" data-dismiss="modal" aria-hidden="true">查看</button>
                </div>
            </div>
        </div>
    </div>
    <!---------------------------订单中有缺货商品，是否返回修改商品？-------------------------->
    <div id="noStock" class="modal fade pop_win" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog" style="width:420px;">
            <div class="modal-content radius">
                <div class="modal-header">
                    <h3 class="modal-title">提示</h3>
                </div>
                <div class="modal-body modal-center">
                    <p style="margin: 0 auto; padding-bottom: 15px;">订单中有缺货商品，是否返回修改商品？</p>
                </div>
                <div align="center" class="button">
                    <button class="btn btn-primary radius size-L" onclick="goBack()">返回修改</button>
                    <button class="btn radius size-L" data-dismiss="modal" aria-hidden="true">取消</button>
                </div>
            </div>
        </div>
    </div>
    <!----------------------------修改发票----------------------------->
    <!----------------------------修改发票----------------------------->
    <div id="modal-demoOne" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:50%;margin-top:-208px">
            <div class="modal-content radius" style="width:580px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b>发票信息</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <div class="modal-body">
                    <div class="pl-30">
                        <button id="check_regular" class="btn btn-default-outline mr-20 ml-40 check_invoice"
                                onclick="change_invoice(1)">普通发票</button>
                        <button id="check_value" class="btn btn-default-outline" onclick="change_invoice(2)" disabled="true">增值税专用发票
                        </button>
                    </div>
                    <div id="regular_invoice">
                        <div class="mt-10 cl lh-20 pt-15 pb-15" style="background:#f5f5f5;margin-left:70px;width:410px;">
                            <span class="f-l">温馨提示：</span>
                            <span class="f-l pl-10" style="width:325px">自2017年7月1日起，开具企业普通发票必须提供企业税号。</span>
                        </div>
                        <div class="cl mt-10">
                            <span class="f-l lh-26" style="margin-left:70px">发票抬头：</span>
                            <div class="f-l pl-10">
                                <input id="per_invoice" type="text" class="input-text w-300 check_invoice" value="个人"
                                       style="text-indent:10px;" onclick="perOrCom(1)" readonly>
                            </div>
                        </div>
                        <div class="mt-10">
                            <input id="increase" type="text" class="input-text w-300"
                                   style="text-indent:10px;margin-left:140px" placeholder="请增单位发票抬头"
                                   onclick="perOrCom(2)">
                        </div>
                        <div id="unit_info" style="display:none">

                            <div class="cl mt-10">
                                <span class="f-l lh-26" style="margin-left:46px">纳税人识别码：</span>
                                <div class="f-l pl-10">
                                    <input id="taxpayerCode" type="text" class="input-text w-300" style="text-indent:10px;"
                                           placeholder="纳税人识别码">
                                </div>
                            </div>
                        </div>
                        <!-- <div class="cl" id="increase_invoice">
                             <a class="f-l mt-10" style="padding-left:155px" onclick="increase()">新増单位发票</a>
                         </div>-->
                        <div class="cl mt-10 mb-10">
                            <span class="f-l lh-26" style="margin-left:70px">发票内容：</span>
                            <div class="f-l pl-10">
                                <button id="no_invoice" class="btn btn-default-outline lh-30 check_invoice" onclick="no_invoice()">不开发票</button>
                                <button id="goods_info" class="btn btn-default-outline ml-20 lh-30"
                                        onclick="goods_info()">商品明细</button>
                            </div>
                        </div>
                    </div>
                    <div id="value_invoice" style="display: none">
                        <div class="mt-10">
                            <img style="margin-left:111px" src="../../../img/alert.png" alt="">
                            <span class="ml-5 va-m">完善并核对公司信息</span>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>单位名称：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input type="text" id="name" class="input-text w-300 invoiceInfo" style="padding-left:10px"
                                       value="国际大公司" disabled>
                            </div>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>纳税人识别码：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input id="code" type="text" class="input-text w-300 invoiceInfo" style="padding-left:10px"
                                       value="649797397" disabled>
                            </div>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>注册地址：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input id="address" type="text" class="input-text w-300 invoiceInfo"
                                       style="padding-left:10px" placeholder="请输入注册地址">
                            </div>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>注册电话：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input id="phone" type="text" class="input-text w-300 invoiceInfo"
                                       style="padding-left:10px" placeholder="请输入注册电话">
                            </div>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>开户银行：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input id="bank" type="text" class="input-text w-300 invoiceInfo" style="padding-left:10px"
                                       placeholder="请输入开户银行">
                            </div>
                        </div>
                        <div class="cl lh-26 mt-10">
                            <div class="f-l w-100 text-r" style="width:150px">
                                <span class="c-red pr-5">*</span>
                                <span>银行账户：</span>
                            </div>
                            <div class="f-l pl-10">
                                <input id="bankNumber" type="text" class="input-text w-300 invoiceInfo"
                                       style="padding-left:10px" placeholder="请输入银行账户">
                            </div>
                        </div>
                        <!-- <div class="mt-20 lh-20">
                             <input id="agree" type="checkbox" class="checkBox va-m" style="margin-left:111px;width:16px;height:16px">
                             <span class="ml-5">我已阅读并同意<span class="c-red ml-10">《增票资质确认书》</span></span>
                         </div>-->
                    </div>
                    <div class="mt-20 pb-20 text-c">
                        <button class="btn btn-primary radius size-M" onclick="saveInvoice()">保存</button>
                        <button class="btn radius size-M ml-10" data-dismiss="modal" aria-hidden="true">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!----------------------------修改收货时间----------------------------->
    <div id="limitAction" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:50%;margin-top:-200px">
            <div class="modal-content radius" style="height:400px;width:700px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b>标准达(不限行)</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <div class="pl-10 pr-10">
                    <table id="timetablsit" class="table table-bg table-border table-bordered time-check">
                        <thead class="text-c">
                        <tr>
                            <th><span>时间段</span></th>
                            <th><span class="serverTime0"></span></th>
                            <th><span class="serverTime1"></span></th>
                            <th><span class="serverTime2"></span></th>
                            <th><span class="serverTime3"></span></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="time"><span>8:00-12:00</span></td>
                            <td data-id="0" class="alery">预约已满</td>
                            <td data-id="1" data-en="0" id="limitAtextNo" ></td>
                            <td data-id="2" data-en="0">可选</td>
                            <td data-id="3" data-en="0">可选</td>
                        </tr>
                        <tr>
                            <td class="time"><span>12:00-17:00</span></td>
                            <td data-id="0" class="alery">预约已满</td>
                            <td data-id="1" data-en="1">可选</td>
                            <td data-id="2" data-en="1">可选</td>
                            <td data-id="3" data-en="1">可选</td>
                        </tr>
                        <tr>
                            <td class="time"><span>17:00-22:00</span></td>
                            <td data-id="0" class="alery">预约已满</td>
                            <td data-id="1" data-en="2">可选</td>
                            <td data-id="2" data-en="2">可选</td>
                            <td data-id="3" data-en="2">可选</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="mt-20 pl-10">
                    <input  checked="checked" type="radio" class="radio" name="morning" value="1" style="margin-top: 0.1px">
                    <label >默认</label>
                    <input type="radio" class="radio" name="morning" value="2" style="margin-top: 0.1px">
                    <label id="Tipsupper">仅上午收货</label>
                    <span id="Tipstime" class="ml-30">8:00-12:00</span>
                </div>
                <div class="pl-10 mt-10">
                    <span class="c-orange" id="limitedText">提示：请于12点前完成订单支付或确认</span>
                    <span class="c-orange" style="">如对配送时间有特殊要求，可与客服联系</span>
                </div>
                <div class="text-c" style="padding-top: 50px">
                    <a class="btn btn-secondary radius size-S" onclick="serviceExpect(1)">确定</a>
                    <a onclick="closeNoLimit()" class="btn radius size-S ml-10">取消</a>
                </div>
            </div>
        </div>
    </div>
    <div id="noLimitAction" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:50%;margin-top:-170px">
            <div class="modal-content radius" style="height:340px;width:700px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b>标准达(限行)</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <div class="pl-10 pr-10">
                    <table id="timetablsiton" class="table table-bg table-border table-bordered time-check">
                        <thead class="text-c">
                        <tr>
                            <th><span>时间段</span></th>
                            <th><span class="serverTime0"></span></th>
                            <th><span class="serverTime1"></span></th>
                            <th><span class="serverTime2"></span></th>
                            <th><span class="serverTime3"></span></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="time"><span>0:00-3:00</span></td>
                            <td data-id="0" class="alery">预约已满</td>
                            <td data-id="1" id="limitAtext">可选</td>
                            <td data-id="2">可选</td>
                            <td data-id="3">可选</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="pl-10 mt-20">
                    <span class="c-orange" id="xianxText">提示：请于12点前完成订单支付或确认</span>
                    <span class="c-orange" style="">如对配送时间有特殊要求，可与客服联系</span>
                </div>
                <div class="text-c" style="padding-top: 50px">
                    <a class="btn btn-secondary radius size-S" onclick="serviceExpect()">确定</a>
                    <a onclick="closeAct()" class="btn radius size-S ml-10">取消</a>
                </div>
            </div>
        </div>
    </div>
    <!----------------------------修改收货时间----------------------------->
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/timeFormat.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<!--<script src="../../../ht-js/order/replaceOrder/confirmOrder.js?rev=@@hash"></script>-->
<script src="../../../ht-js/order/replaceOrder/OrderConfirm.js?version='1.1.0'"></script>
<script>
    function close_model() {
        $("#dizhi").modal("hide");
    }
    function goBack(me) {
        window.parent.updataGoodsList(customerInfo.cityCode,me);
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
    function goBacker() {
        var index = parent.location.reload();
        parent.layer.close(index);
    }
    //授权收货人关联
    function myFunction(){
        var linkman=$("#linkman").val();
        var user_data = {
            keywords:linkman,
            customerCode: customerInfo.customerCode
        }
        var succCallBack = function (data, status, response) {
            console.log(data)
            if(data.errorCode=="0"){
                var jsonObj =data.consignee;
                if(jsonObj==""){
                    $("#tuan").html("<li>无数据</li> ");
                }else {
                    console.log(jsonObj)

                    var optionstring = "";
                    for (var  i= 0; i < jsonObj.length; i++) {
                        console.log(jsonObj[i].consignee_name)
                        optionstring += "<li onclick='relation("+ jsonObj[i].authorized_consignee_id+",\""+jsonObj[i].consignee_name+"\",\""+jsonObj[i].consignee_telephone+"\")' data-align=\"" + jsonObj[i].authorized_consignee_id + "\" > " + jsonObj[i].consignee_name + "</li>";
                    }
                    $("#tuan").html(optionstring);
                }
            }else{
                $("#tuan").html("<li>无数据</li> ");
            }
        }
        web.doAjax(root.replaceInter.replace_getConsigneeByCustomerCode,'post',user_data, succCallBack);
    }
    //授权收货人取光标
    $("#linkman").focus(function () {
        $("#tuan").show()
    });
    $(document).bind("click",function(e){
        //id为menu的是菜单，id为open的是打开菜单的按钮
        if($(e.target).closest("#tuan").length == 0 && $(e.target).closest("#linkman").length == 0){
            //点击id为menu之外且id不是不是open，则触发
            $("#tuan").hide()
        }
    })
    function relation(id,ce,tel) {
        $("#linkman").val(ce).text(id);
        $("#mobilephone").val(tel);
        $("#tuan").hide()
        console.log($("#linkman").text())
    }
    // 商品资质功能
    $(function() {
        $("#zzNeed").change(function () {
            var opt = $("#zzNeed").val();
            if (opt == 10) {
                $(".zz_need").find(".is_show").addClass("is_need").removeClass("is_notneed");
            } else {
                $(".zz_need").find(".is_show").addClass("is_notneed").removeClass("is_need");
            }
        });
        $("#yunShare").change(function () {
            var opt = $("#yunShare").val();
            yunSharefun(opt)
        });
        $("#zzNum").on('keyup', function () {
            console.log(9);
            curV = $(this).val().replace(/[^\d]/g, '');
            if (curV == 0) {
                $(this).val('');
            } else if (curV > 4) {
                $(this).val(4);
            }
        });
        //修改收货时间
        $(".time-check td").click(function(){
            if($(".time-check td:not('.time')").text().indexOf("已选")!= -1){
                $(".time-check td:not('.alery'):not('.time')").text("可选")
            }
            $(".time-check td").removeClass("btn-primary")
            if ($(this).text()=="可选"){
                $(this).addClass("btn-primary")
                $(this).text("已选")
                modifyTagging()
            }
        })
    })
    function limitActChange() {
        $("#limitAction").modal("show");
        var canlsien=$('#pintime').text()
        var bootsud= canlsien.substring(0, 11);
        var topsud= canlsien.substring(12, 25);
        var sken=ergodicdata(bootsud,1)
        var long=ergodicdata(topsud,2)
        for(var i=0; i<$('#timetablsit td').length; i++){
            var meHtml=$('#timetablsit td')[i]
            if($(meHtml).attr('data-id')==sken&&$(meHtml).attr('data-en')==long){
                $(meHtml).addClass('btn-primary').text('已选').siblings().removeClass('btn-primary')
                $(meHtml).parent().siblings().children().removeClass('btn-primary')
                for(var k=0; k<$(meHtml).siblings().length;k++){
                    var listHtml=$(meHtml).siblings()[k]
                    if($(listHtml).text()=='已选'){
                        $(listHtml).text('可选')
                    }
                }
            }
        }
        var selects = document.getElementsByName("morning");
        if($('#morningAfternoon').text()==''){
            for (var i=0; i<selects.length; i++){
                if(selects[i].value=="1") {
                    selects[i].checked= true;
                    break;
                }
            }
        }else {
            for (var i=0; i<selects.length; i++){
                if(selects[i].value=="2") {
                    selects[i].checked= true;
                    break;
                }
            }
        }
        setTimeout(function(){
            modifyTagging()
        },800);
    }
    function closeNoLimit(){
        $("#limitAction").modal("hide");
    }
    function actChange() {
        $("#noLimitAction").modal("show");
        var canlsien=$('#pintime').text()
        var bootsud= canlsien.substring(0, 11);
        var sken=ergodicdata(bootsud,1)
        for(var i=0; i<$('#timetablsiton td').length; i++){
            var meHtml=$('#timetablsiton td')[i]
            if($(meHtml).attr('data-id')==sken){
                $(meHtml).addClass('btn-primary').text('已选').siblings().removeClass('btn-primary')
                $(meHtml).parent().siblings().children().removeClass('btn-primary')
                for(var k=0; k<$(meHtml).siblings().length;k++){
                    var listHtml=$(meHtml).siblings()[k]
                    if($(listHtml).text()=='已选'){
                        $(listHtml).text('可选')
                    }
                }
            }
        }
        setTimeout(function(){
            modifyTagging()
        },800);
    }
    function closeAct(){
        $("#noLimitAction").modal("hide");
    }
</script>
</body>
</html>